<template>
  <BaseQuery>
    <BaseQueryLeft :span="12">
      <el-button icon="el-icon-plus" size="small" type="primary" @click="add">
        新增岗位
      </el-button>
    </BaseQueryLeft>
  </BaseQuery>
</template>

<script>
import {  broadcast } from "@/utils/util";
export default {
  name: 'QueryForm',
  methods: {
    add() {
      //this.$router.push({ name: 'PostCreate', params: { type: 'add' }})
       broadcast("look.user.post", { type: "add" });
    }
  }
}
</script>
